package com.tuanzi.loan.business.entity.wechat;

import com.tuanzi.loan.core.entity.AuditEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: chenweijun
 * @Date: 2018/9/27 21:57
 * @Description:
 */
@Data
@Entity
@Table(name = "loan_wechat_customer_message")
public class LoanWechatCustomerMessage extends AuditEntity{

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @NotNull
    @Length(max = 50)
    @Column(name = "name")
    private String name;

    @Column(name = "effective_start_time")
    private Date effectiveStartTime;

    @Column(name = "effective_end_time")
    private Date effectiveEndTime;

    @NotNull
    @Length(max = 20)
    @Column(name = "product_id")
    private String productId;

    @NotNull
    @Column(name = "status")
    private Integer status;

    @NotNull
    @Column(name = "trigger_behavior")
    private Integer triggerBehavior;


    @NotNull
    @Column(name = "trigger_time")
    private Integer triggerTime;

    @NotNull
    @Length(max = 20)
    @Column(name = "msg_type")
    private String msgType;

    @NotNull
    @Column(name = "msg_content")
    private String msgContent;

}
